package com.crm.CLdriving.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.crm.CLdriving.po.UserPO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<UserPO> {

//    @Select("SELECT * FROM user WHERE name LIKE CONCAT('%', #{name}, '%')")
    @Select("SELECT * FROM user WHERE name=#{name}")
    UserPO findByName(String name);
}
